package com.otp.service.instance.impl;

import java.util.List;

import org.appfuse.service.impl.GenericManagerImpl;
import org.springframework.beans.factory.annotation.Autowired;

import com.otp.model.test.instance.TestItemResponseInstance;
import com.otp.model.test.instance.dao.TestItemResponseInstanceDao;
import com.otp.service.instance.TestItemResponseInstanceManager;

public class TestItemResponseInstanceManagerImpl extends GenericManagerImpl<TestItemResponseInstance,Long> implements TestItemResponseInstanceManager  {
	private TestItemResponseInstanceDao itemResponseDao;
	
	@Autowired
	public void setItemResponseDao(TestItemResponseInstanceDao itemResponseDao){
		this.dao = itemResponseDao;
        this.itemResponseDao = itemResponseDao;
	}

	public List<TestItemResponseInstance> getTestItemResponseInstance(String instenceId) {
		try {
			return itemResponseDao.getTestItemResponseInstance(instenceId);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return null;
	}
	
}
